package com.example.xssfworkbook;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.Month;

/**
 * @author 沈传尚
 * @date 2022/3/2
 */
public class Test2 {
    public static void main(String[] args) {
//        int monthValue = LocalDate.now().getMonthValue();
//        System.out.println(monthValue);
//        int dayOfMonth = LocalDate.now().getDayOfMonth();
//        System.out.println(dayOfMonth);
//        System.out.println(LocalDate.now().getMonthValue()+"."+LocalDate.now().getDayOfMonth());
//        System.out.println(LocalDate.now().getMonthValue()+".1-"+LocalDate.now().getMonthValue()+"."+LocalDate.now().getDayOfMonth());
        String s="2022-03-01";
        // 获取年份
        String month = s.substring(s.indexOf("-")+1, s.lastIndexOf("-"));

        String day = s.substring(s.lastIndexOf("-") + 1);


       String s1=Integer.parseInt(month)+"."+Integer.parseInt(day);
        System.out.println(s1);


        String trim = "003".trim();
        System.out.println(trim);


    }
}
